Q3Group_AddObject
You can use theQ3Group_AddObject
function to add an object to a group.
TQ3GroupPosition Q3Group_AddObject ( TQ3GroupObject group, TQ3Object object);
group
- A group.
object
- An object.
DESCRIPTION
TheQ3Group_AddObject
function inserts the object specified by theobject
parameter into the group specified by thegroup
parameter. Ifgroup
is a unordered group, the object is appended to the list of objects in the group. Ifgroup
is an ordered group, the object is appended to the part of the list of objects in the group that are of the same type asobject
.Q3Group_AddObject
returns the new position of the object in the group. If an error occurs as an object is inserted into the group,Q3Group_AddObject
returnsNULL
.ERRORS
kQ3ErrorInvalidObject
kQ3ErrorOutOfMemory